主题
延时指定毫秒 - Delay
函数简介
延时指定的毫秒,过程中不阻塞UI操作。
接口名称
DelayDLL调用
c
int Delay(int delay);参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| delay | 整数型 | 延时时间(毫秒)。 |
示例
SDK 调用
cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
ola.Delay(1000);
// 延时 1000 毫秒csharp
using OLAPlug;
var ola = new OLAPlugServer();
ola.Delay(1000);
// 延时 1000 毫秒python
from OLAPlugServer import OLAPlugServer
ola = OLAPlugServer()
ola.Delay(1000)
# 延时 1000 毫秒java
import com.olaplug.OLAPlugServer;
OLAPlugServer ola = new OLAPlugServer();
ola.Delay(1000);
// 延时 1000 毫秒cpp
var ola = com("OlaPlug.OlaSoft")
ola.Delay(1000);
// 延时 1000 毫秒vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
ola.Delay(1000);
' 延时 1000 毫秒text
.局部变量 ola, OLAPlug
ola.创建 ()
ola.Delay(1000)
' 延时 1000 毫秒aardio
import OLAPlugServer;
var ola = OLAPlugServer();
ola.Delay(1000);
// 延时 1000 毫秒text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
ola.Delay(1000);
// 延时 1000 毫秒cpp
#include "OLAPlugServer.h"
OLAPlugServer ola;
ola.Delay(1000);
// 延时 1000 毫秒原生 DLL 调用
cpp
long instance = CreateCOLAPlugInterFace();
Delay(instance, 1000);csharp
long instance = CreateCOLAPlugInterFace();
Delay(instance, 1000);python
from ctypes import CDLL, c_int, c_int64, create_string_buffer
ola = CDLL("OLAPlug_x64.dll")
ola.CreateCOLAPlugInterFace.restype = c_int64
instance = ola.CreateCOLAPlugInterFace()
Delay(instance, 1000)返回值
| 返回值 | 说明 |
|---|---|
1 | 成功。 |
0 | 失败。 |
